Namespace:  C1.LiveLinq
Assembly:  C1.Silverlight.LiveLinq (in C1.Silverlight.LiveLinq.dll)

Syntax

C#
public static View<T> AsLive<T>(
	this ObservableCollection<T> source,
	ViewOrder order
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function AsLive(Of T) ( _
	source As ObservableCollection(Of T), _
	order As ViewOrder _
) As View(Of T)

Parameters

source
Type: System.Collections.ObjectModel..::..ObservableCollection<(Of <(<'T>)>)>
The ObservableCollection<(Of <(<'T>)>)> to expose as a view.
order
Type: C1.LiveLinq.LiveViews..::..ViewOrder
Specifies whether to preserve source item order.

Type Parameters

T
The type of the elements in the view.

Return Value

A view that contains the same elements as the ObservableCollection<(Of <(<'T>)>)>.

See Also